Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt distribution of profile scripts #283

Closed

Conversation

jjerphan
Copy link
Member

@jjerphan jjerphan commented Jan 3, 2025

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

Fix #282 with patches of mamba-org/mamba#3723 and mamba-org/mamba#3739.

@jjerphan jjerphan force-pushed the adapt-distribution-of-mamba.sh branch from c1ed21b to a771c6a Compare January 3, 2025 10:58
@conda-forge conda-forge deleted a comment from conda-forge-admin Jan 3, 2025
@jjerphan
Copy link
Member Author

jjerphan commented Jan 3, 2025

@conda-forge-admin, please rerender

@conda-forge-admin
Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I tried to rerender for you, but it looks like there was nothing to do.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12596639646. Examine the logs at this URL for more detail.

@conda-forge-admin
Copy link
Contributor

conda-forge-admin commented Jan 3, 2025

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

I do have some suggestions for making it better though...

For recipe/meta.yaml:

  • ℹ️ The recipe is not parsable by parser conda-souschef (grayskull). This parser is not currently used by conda-forge, but may be in the future. We are collecting information to see which recipes are compatible with grayskull.
  • ℹ️ The recipe is not parsable by parser conda-recipe-manager. The recipe can only be automatically migrated to the new v1 format if it is parseable by conda-recipe-manager.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12746273377. Examine the logs at this URL for more detail.

@conda-forge-admin
Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I tried to rerender for you, but it looks like there was nothing to do.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12596662575. Examine the logs at this URL for more detail.

@jjerphan jjerphan force-pushed the adapt-distribution-of-mamba.sh branch from a771c6a to b81f865 Compare January 3, 2025 11:29
@jjerphan jjerphan marked this pull request as ready for review January 3, 2025 13:15
Copy link
Contributor

@maresb maresb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jjerphan, sorry that #282 was confusing. (What I put under "Installed packages" in that report were the commands that I used to achieve a broken environment with a mambaorg/micromamba container.)

By the way, I downloaded the 2.0.5 mamba packages from conda-forge for Windows and Linux. The Linux version doesn't seem to include any activation scripts (presumably they are currently provided transitively by libmamba). In contrast, the Windows version of mamba does include activation scripts in Scripts/ and condabin/ 🤔.

Another thought: would it be possible for someone on Linux to end up with build 2 of libmamba without the mamba.sh included in libmamba but with build 1 of mamba that also excludes mamba.sh? Answer: All good, this potential problem seems impossible because the pin on libmamba seems to include the build number.

recipe/meta.yaml Show resolved Hide resolved
# ============

-install(TARGETS ${mambaexe_targets})
+# The script are only needed for mamba and not for micromamba
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I'm only claiming is that the mamba.sh/mamba.bat activation script should not be included with libmamba.

Probably your claim is correct, but it caught my eye. (It's been a long time since I've looked at the activation scripts for micromamba, and indeed the latest micromamba package doesn't seem to include any activation scripts.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, this change was added based on this test in micromamba-feedstock independently from your remark.

Signed-off-by: Julien Jerphanion <[email protected]>
@jjerphan jjerphan changed the title Adapt distribution of etc/profile.d/mamba.sh Adapt distribution of profile scripts Jan 13, 2025
@jjerphan jjerphan force-pushed the adapt-distribution-of-mamba.sh branch 3 times, most recently from 8185b22 to 2045b78 Compare January 13, 2025 11:29
@jjerphan
Copy link
Member Author

Closing as superseded by #285.

@jjerphan jjerphan closed this Jan 14, 2025
@jjerphan jjerphan deleted the adapt-distribution-of-mamba.sh branch January 14, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libmamba includes mamba.sh activation script, but mamba doesn't exist
3 participants